package com.pinda.feign;

import com.pinda.oms.entity.PdOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "oms-service",path = "/pd-order",url = "http://127.0.0.1:2006")
public interface PdOrderFeignClient {
    @PostMapping("/UpdOrderById/{id}")
    boolean UpdOrderById(@PathVariable("id") String id);

    /**
     * 派送中
     *
     * @param id
     * @return
     */
    @PostMapping("updateStatusById8/{id}")
    boolean updateStatusById8(@PathVariable("id") String id);

    @PostMapping("updateStatusById9/{id}")
    boolean updateStatusById9(@PathVariable("id") String id);

    @RequestMapping("inTransit")
    boolean inTransit(@RequestBody PdOrder pdOrder);


    /**
     * 取件 交件之后修改订单状态为网点入库（3）
     * @param id
     * @return
     */
    @GetMapping("updateStatusById3/{id}/{orgId}")
    boolean updateStatusById3(@PathVariable("id") String id,@PathVariable("orgId") String orgId);


}
